package com.easywan.service.impl;

import com.easywan.pojo.IResult;
import com.easywan.pojo.IResultSupport;
import com.easywan.service.IToolsBankCreateService;
import com.easywan.vo.ToolsBankCard;

public class ToolsBankCreateServiceImpl implements IToolsBankCreateService{

	@Override
	public IResult doBankCreate(String bankNo) {
		String msg = null;
		switch(bankNo){
			//中国建设银行支付宝龙卡借记卡
		case ToolsBankCard.CBC_ZFB_DEBIT_CARD:
			msg = bankNo + ToolsBankCard.random(ToolsBankCard.BANK_CARD_12);
			int lumn = ToolsBankCard.lumn(bankNo);
			msg += lumn;
			break;
			default: msg = "还未开发此类卡号的算法";
		}
		
		return IResultSupport.buildResult(IResult.SUCCESS_CODE, msg);
	}

}
